class TestDemo1{
    public <T> T func(T[] array){


    }
}
public class Test4 {

    public static void main(String[] args) {
       TestDemo1 testDemo = new TestDemo1();
       Integer[] array = {1,2,3,4};
       Integer ret = testDemo.<Integer>func(array);
       Integer ret2 = testDemo.func(array);
    }
}

